﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ShoppingApp
{
    public partial class SiteMaster : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            
            
        }

        public MenuItem ValidationMenuItem 
        {
            get{
                MenuItem item = null;
                MenuItemCollection items = NavigationMenu.Items;
                for (int i = 0; i < items.Count; i++)
                {
                    item = items[i];
                    if (item.Text == "Validation")
                    {
                        break;
                    }
                }
                
                return item;
            }
        }
    }
}
